package com.zf.powerjob.worker.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zf.powerjob.worker.entity.JobInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Mapper
 */
public interface JobInfoMapper extends BaseMapper<JobInfo> {

    /**
     * 根据 extra 字段查询 cron类型job, 如果传空则查询所有cron 类型的job
     */
    List<JobInfo> getCronJobs(@Param("extraList") List<String> extraList);

}
